package cn.kinoko.service.common.export.component;

import cn.kinoko.service.common.export.ExportTaskStatusEnum;
import cn.kinoko.service.common.export.ExportTopicEnum;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author kk
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ExportTask {

    private String taskId;
    private ExportTopicEnum topic;
    private String fileName;
    private volatile ExportTaskStatusEnum status;
    private int range;
    @JsonIgnore
    private Long uid;
    @JsonIgnore
    private long evaluateSize = -1;
    @JsonIgnore
    private Object params;
    @JsonIgnore
    private String contentType;

}
